<?php
/**
 * 客户验证
 * @Author: wjf
 * @Date: 2022-11-26 14:51:23
*/

namespace app\crm\validate\business;

use think\Validate;

class Business extends Validate
{
    protected $rule =   [
        'name'  => 'require',   
        'customer_id' => 'require|integer'	
    ];
    
    protected $message  =   [
        'name.require' => '商机名称不能为空',
		'customer_id.require' => '请选择客户用户'
    ];
	
	protected $scene = [
        'add'  =>  ['name','customer_id'],
    ];
    
}